get

public abstract Optional<C> get<C extends P>(Class<C> callbackClass)

Returns an Optional that contains the callback of the given type or an empty Optional if there is no registered callback with the given type.

Return

an Optional that contains the callback of the given type

Parameters

callbackClass

the callback class

<C>

the callback type